#include "MineDesign3D/View2DSetup.hpp"
#include <Windows.h>
#include <GL/GL.h>
namespace MineDesign3D{
void View2DSetup()
{
	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();

	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	
	int viewport[4] = {0};
	glGetIntegerv(GL_VIEWPORT, viewport);
	const int width = viewport[2];
	const int height = viewport[3];

	glOrtho(
		0,
		static_cast<float>(width),
		static_cast<float>(height),
		0,
		1.0,-1.0);
}
}//MineDesign3D
